---
--类名: TypeWordsEvent.lua
--创建日期: 2015-10-26
--创建人: 陈小虎
--功能描述: 屏幕打字事件
--修改内容:
--修改日期:   
--修改人:     
--修改备注: 
--
local Event = import(".Event")

local TypeWordsEvent = class("TypeWordsEvent",function()
    return Event.new()
end)

function TypeWordsEvent:ctor(params)
	self:setEventName(params.event)

	self.mWords = params.words
	self.mFontSize = 20
	if params.fontSize then
		self.mFontSize = params.fontSize
	end
	self.mTypeTime = 2
	if params.typeTime then
		self.mTypeTime = params.typeTime
	end
	self.mLineLen = display.width
	if params.lineLen then
		self.mLineLen = params.lineLen
	end
	self.mColor = {r = 255,g = 255,b = 255,a = 255}
	if params.color then
		self.mColor = params.color
	end
	self.mDelayTime = 0
	if params.delayTime then
		self.mDelayTime = params.delayTime
	end
	self.mOverDelay = 0
	if params.overDelayTime then
		self.mOverDelay = params.overDelayTime
	end
end

return TypeWordsEvent